<?php
/*
      Product.class.php - trida reprezentujici polozku zbozi.
      Pozadavky 
            - vyuziva globalni objekt $DB pro praci s databazi
            - konstanty v souboru config.php      
*/

class Product {
      private $OrderNumber;
      private $Price;
      private $ActionPrice;
      private $IsAction;
      private $IsNew;
      
      // Konstruktor
      public function Product ($OrderNumber, $Price, $ActionPrice, $IsAction, $IsNew) {
            $this->OrderNumber = $OrderNumber;
            $this->Price = $Price;
            $this->ActionPrice = $ActionPrice;
            $this->IsAction = $IsAction;
            $this->IsNew = $IsNew;            
      }
      // Konstruktor s jednim parametrem - vybere se z DB produkt podle OrderNumber
      public function Product ($OrderNumber) {
            
      }
}
?>
